import axios from "axios";


const token = ``

const http = axios.create({
	BASE_URL: import.meta.env.BASE_URL
})

const requestHandler = (config) => {
	config.headers.Authorization = `Bear ${token}`
	return config
}

const responseSuccessHandler = (response) => {
	return response
}
const responseErrorHandler = (error) => {
	return error
}

http.interceptors.request.use(requestHandler)
http.interceptors.response.use(responseSuccessHandler, responseErrorHandler)

export default http